@import './variables.module.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './btn.scss';

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Microsoft YaHei, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Arial, sans-serif;
  font-size: 14px;
  color: #606266;
  font-weight: 400;
}

label {
  font-weight: 700;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

.no-padding {
  padding: 0 !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans',
  'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
  box-sizing: border-box;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.line1 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.line2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.line3 {
  @extend .line2;
  -webkit-line-clamp: 3;
}

.line4 {
  @extend .line2;
  -webkit-line-clamp: 4;
}

.opacity-0 {
  opacity: 0;
}

.text-mini {
  font-size: 10px;
}

.text-xs {
  font-size: 12px;
}

.text-sm {
  font-size: 14px;
}

.text-base {
  font-size: 16px;
}

.text-lg {
  font-size: 18px;
}

.text-xl {
  font-size: 20px;
}

.text-xxl {
  font-size: 30px;
}

.text-primary {
  color: $--color-primary;
}

.text-success {
  color: $--color-success;
}

.text-error {
  color: $--color-danger;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.select-none {
  user-select: none;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.float-none {
  float: none;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-auto {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.bg-no-repeat {
  background-repeat: no-repeat;
}

.bg-center {
  background-position: center;
}

.bg-top {
  background-position: top;
}

.bg-cover {
  background-size: cover;
}

.bg-contain {
  background-size: contain;
}

.bg-full {
  background-size: 100% 100%;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.fixed {
  position: fixed;
}

.rounded-full {
  border-radius: 9999px;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.align-baseline {
  vertical-align: baseline;
}

.align-middle {
  vertical-align: middle;
}

.w-0 {
  width: 0;
}

.w-full {
  width: 100%;
}

.w-screen {
  width: 100vw;
}

.h-auto {
  height: auto;
}

.h-0 {
  height: 0;
}

.h-full {
  height: 100%;
}

.h-screen {
  width: 100vh;
}

.m-auto {
  margin: auto;
}

.default-btn {
  width: 110px;
  color: #C29B74 !important;
  border: 1px solid #C29B74 !important;
}

.pointer {
  cursor: pointer;
}

.overflow-y-auto {
  overflow-y: auto;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-auto {
  overflow: auto;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.overflow-y-hidden {
  overflow-y: hidden;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-scroll {
  overflow: scroll;
}

.overflow-x-scroll {
  overflow-x: scroll;
}

.overflow-y-scroll {
  overflow-y: scroll;
}

.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

.clearbox {
  clear: both;
}

.origin-center {
  transform-origin: center;
}

.origin-top {
  transform-origin: top;
}

.origin-top-right {
  transform-origin: top right;
}

.origin-right {
  transform-origin: right;
}

.origin-bottom-right {
  transform-origin: bottom right;
}

.origin-bottom {
  transform-origin: bottom;
}

.origin-bottom-left {
  transform-origin: bottom left;
}

.origin-left {
  transform-origin: left;
}

.origin-top-left {
  transform-origin: top left;
}

@for $i from 0 through 100 {
  $val: $i * 2;
  .w-#{$val} {
    width: $val + px;
  }
  .min-w-#{$val} {
    min-width: $val + px;
  }
  .h-#{$val} {
    height: $val + px;
  }
  .min-h-#{$val} {
    min-height: $val + px;
  }
}

@for $i from 0 through 25 {
  $val: $i * 2;
  .p-#{$val} {
    padding: $val + px;
  }
  .px-#{$val} {
    padding-left: $val + px;
    padding-right: $val + px;
  }
  .py-#{$val} {
    padding-top: $val + px;
    padding-bottom: $val + px;
  }
  .pt-#{$val} {
    padding-top: $val + px;
  }
  .pb-#{$val} {
    padding-bottom: $val + px;
  }
  .pr-#{$val} {
    padding-right: $val + px;
  }
  .pl-#{$val} {
    padding-left: $val + px;
  }
  .m-#{$val} {
    margin: $val + px;
  }
  .mx-#{$val} {
    margin-left: $val + px;
    margin-right: $val + px;
  }
  .my-#{$val} {
    margin-top: $val + px;
    margin-bottom: $val + px;
  }
  .mt-#{$val} {
    margin-top: $val + px;
  }
  .mb-#{$val} {
    margin-bottom: $val + px;
  }
  .mr-#{$val} {
    margin-right: $val + px;
  }
  .ml-#{$val} {
    margin-left: $val + px;
  }
  .inset-#{$val} {
    top: $val + px;
    right: $val + px;
    bottom: $val + px;
    left: $val + px;
  }
  .inset-x-#{$val} {
    right: $val + px;
    left: $val + px;
  }
  .inset-y-#{$val} {
    top: $val + px;
    bottom: $val + px;
  }
  .top-#{$val} {
    top: $val + px;
  }
  .left-#{$val} {
    left: $val + px;
  }
  .right-#{$val} {
    right: $val + px;
  }
  .mxw-#{$val} {
    max-width: $val + px;
  }
  .bottom-#{$val} {
    bottom: $val + px;
  }
}

.mxw500 {
  max-width: 500px;
}

@for $i from 0 through 40 {
  $val: $i * 100;
  .animate__delay-#{$val}ms {
    animation-delay: $val + ms;
  }
}

.kyland-dialog.middle-dialog {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: calc(100% - 30px);
  max-width: calc(100% - 30px);
}

.kyland-dialog.middle-dialog .kyland-dialog__body {
  flex: 1;
}

// dialog基本信息边框
.border-style {
  position: relative;
  color: $--color-primary;
  padding-left: 14px;
  font-size: 16px;
  margin-bottom: 16px;

  &::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background-color: $--color-primary;
    transform: translateY(-50%);
  }
}

.text-justify {
  text-align-last: justify;
}

.kyland-form-item__label {
  color: #666;
  font-weight: 400;
}

.sticky__view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 125px);

  &.sticky-tab__view {
    height: calc(100vh - 125px - 80px);
  }
}

@media screen and (max-height: 600px) {
  .sticky__view {
    height: auto;

    &.sticky-tab__view {
      height: auto;
    }
  }
}

.search-panel {
  background-color: #fff;
  padding: 20px 30px 0;
  flex-shrink: 0;

  .kyland-form--inline .kyland-form-item {
    margin-right: 40px;
  }

  .btn-group {
    padding-bottom: 20px;
  }

  .kyland-form + .btn-group, .search-form-layout .btn-group {
    padding: 20px 0;
    border-top: 1px solid #efefef;
  }
}

.custom-tabs {
  .el-tabs__header {
    background-color: #fff;
    padding: 13px 30px 15px;
  }

  .el-tabs__item {
    font-size: 18px;
    text-align: center;
    min-width: 200px;
  }

  .el-tabs__nav-wrap::after {
    height: 0;
  }
}

.tabel-action-group {
  .kyland-link {
    margin-right: 20px;

    &:last-child {
      margin-right: 0;
    }
  }
}

.scroll-view__dialog.kyland-scrollbar {
  margin-right: -30px;

  > .kyland-scrollbar__wrap > .kyland-scrollbar__view {
    padding-right: 30px;
  }
}

.inset-view__title {
  font-size: 16px;
  font-weight: 600;
  padding-left: 20px;
  line-height: 32px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

.bjs-powered-by {
  display: none;
}